<include file="Public:header" />
<script type="text/javascript" src="__PUBLIC__/Js/imgareaselect.js"></script>
			<include file="Public:menu" />
			<div id="right">
				<div class="top"></div>
				<div class="app_right_banner">
					<?php 
						if($userInfo['id'] == $myId){
					 ?>
					<div class="app_face">
						<img src="__PUBLIC__/Uploads/face/small/{$userInfo['faceimg']}"/>
					</div>
					<div class="app_userinfo">
						<p class="app_module">我的相册 -- {$album['name']}</p>
						<p class = "app_module_back"><a href="__APP__/user">返回我的空间</a></p>
					</div>
					<?php 
						}else{
					 ?>
					<div class="app_face">
						<img src="__PUBLIC__/Uploads/face/small/{$userInfo['faceimg']}"/>
					</div>
					<div class="app_userinfo">
						<p class="app_module">{$userInfo['username']}的相册 -- {$album['name']}</p>
						<p class = "app_module_back"><a href="__APP__/home/{$userInfo['id']}">查看{$userInfo['username']}的空间</a></p>
					</div>
					<?php } ?>
				</div>
				<div class="app_right_menu">
					<div class="arm_1">
						相片查看
					</div>
					<div class="arm_2">
						<a href="__APP__/showalbum/{$photo['albumid']}">返回"{$album['name']}"</a>					
					</div>
					<?php 
						if($userInfo['id'] == $myId){
					 ?>
					<div class="arm_2">
						<a href="__APP__/photos/{$userInfo['id']}">我的相册</a>					
					</div>
					<div class="arm_2">
						<a href="__URL__/createalbum">创建相册</a>
					</div>
					<div class="arm_2">
						<a href="__URL__/uploadphoto/albumid/{$photo['albumid']}">上传更多相片</a>					
					</div>
					<?php 
						}else{
					 ?>
						<div class="arm_2">
							<a href="__APP__/photos/{$userInfo['id']}">{$userInfo['username']}的相册</a>					
						</div>
					<?php } ?>
				</div>
				<a name="showphoto"></a>
				<div class="app_right_count">
					所属相册:<a href="__APP__/showalbum/{$photo['albumid']}"><span class="arc_title">{$album['name']}</span>(共{$album['photonum']}张)</a> | <a href="#" id="quanren">开始圈人</a> | <a href="__PUBLIC__/Uploads/photo/{$photo['photoname'] }" target="_blank">查看原图</a> | <a href="__APP__/showphoto/{$_pervid}#showphoto">上一张</a> | <a href="__APP__/showphoto/{$_nextid}#showphoto">下一张</a>
				</div>
				<div>
					
					<div class="showphoto">
						<div class="msg-succ" style="display:none">
						点击相片里的人，把你认识的人圈出来! <input type="button" class="input2" id="quanren_end" value="完成圈人"/>
						</div>
						<a href="__APP__/showphoto/{$_nextid}#showphoto">
						<img id="img" src="__PUBLIC__/Uploads/photo/big/{$photo['photoname'] }"/>
						</a>
					</div>
					<div id="taglist">
					图片中有:
					<volist name="taglist" id="tag">
						<span class="nametag" tag="{$tag['tagcoordinate']}">
							<span>
							<a href="__APP__/home/{$tag['taguserid']}">{$tag['username']}</a>(<a href="__URL__/showtag/u/{$tag['taguserid']}">照片
</a>							<?php if($tag['userid'] == $myId || $tag['taguserid'] == $myId || $tag['requestid'] == $myId){ ?>
							| <a style="position:relative;" class="feeddel" href="__URL__/deltag/id/{$tag['id']}">删除</a>
							<?php 
							}
							 ?>)
							</span>
						</span>
					</volist>
					</div>
					<div>
						待确定的tag:
					</div>
					<div>
						<p>{$photo['photodesc']}</p>
						<p>上传于{$photo['regtime']|toDate}</p>
						<p>
						<?php 
						if($userInfo['id'] == $myId){
						 ?>
						<a href="__URL__/editphoto/id/{.id}/count/1/albumid/{$photo['albumid']}">编辑相片</a> | <a href="__URL__/deletephoto/id/{.id}" class="deletephoto">删除相片</a> | 
						<?php if($album['defaultphoto'] == $photo['photoname']){ ?>
						此为相册封面
						<?php }else{ ?>
						<a class="setdefault" href="__URL__/setdefault/albumid/{$photo['albumid']}/img/{$photo['photoname']|base64_encode}">设置为封面</a>
						<?php } ?>
						| <a href="__URL__/uploadphoto/albumid/{$photo['albumid']}">上传更多相片</a>
						<?php } ?>
						</p>
					</div>					
					<h4>相片评论(共{$photo['revertnum']}个)</h4>
					<script type="text/javascript" src="__PUBLIC__/Js/FCKeditor/fckeditor.js"></script>
					<a name="revert"></a>
					<div class="revertshow">
						<volist name="revertlist" id="revert">
						<a name="revert{$revert['id']}"></a>
						<div class="revertlist">
							<div class="revert_username_face">
								<a href="__APP__/home/{$revert['revertsid']}"><img src="__PUBLIC__/Uploads/face/small/{$revert['faceimg']}" width="60px" height="60px"/></a>
							</div>
							<div class="revertcontent">
								<div class="reverttitle"><a href="__APP__/home/{$revert['revertsid']}">{$revert['username']}</a> {$revert['regtime']|toDate} <span class="floor">{$i}楼</span> <?php if($revert['revertsid'] != $myId){ ?><a href="#revert{$revert['id']}" class="revert_revert" tag="{$revert['revertsid']}" id="{$revert['id']}">回复</a><?php } ?> <?php if($revert['revertsid'] == $myId){ ?><a href="#" class="delrevert" id="{$revert['id']}">删除</a><?php } ?> </div>
								<div class="revert_content">{$revert['content']}</div>
							</div>
						</div>
						</volist>
					</div>
					<div class="revertshow">
						<p><b>发表评论</b> [至少两个字符以上]</p>
						<p>
							
							<textarea id="content" name="revertcontent"></textarea>
							<script type="text/javascript"> 
								var oFCKeditor = new FCKeditor( "content","90%","160px","Basic") ; 
								oFCKeditor.BasePath = "__PUBLIC__/Js/FCKeditor/" ; 
								oFCKeditor.ReplaceTextarea() ;
							</script>
							<!--<textarea id="revertcontent" name="revertcontent" cols="40" rows="6"></textarea>-->
						</p>
						<p>
							<input type="hidden" id="photoid" value="{$photo['id']}"/>
							<input type="hidden" id="albumid" value="{$photo['albumid']}"/>
							<input type="hidden" value="{$photo['userid']}"/>
							<input type="button" class="revertpost" value="发表评论"/>
							<input type="hidden" value="0"/>
						</p>
						<p></p>
					</div>
				</div>
				<div class="share">
					<a class="addshare" rel="facebox" href="__APP__/share/addshare/g/photo/albumid/{$photo['albumid']}/id/{$photo['id']}/u/{$photo['userid']}/img/{$photo['photoname']|base64_encode}"><img src="../Public/images/share.gif"/></a>
				</div>
			</div>
<include file="Public:footer" />